import request from '@/utils/request'

// 报修单列表
export function apiRepairLists(params: any) {
    return request.get({ url: '/repair/lists', params })
}

export function apiRepairHuanLists(params: any) {
    return request.get({ url: '/repair/huanxinList', params })
}


// 添加报修单
export function apiRepairAdd(params: any) {
    return request.post({ url: '/repair/add', params })
}

// 编辑报修单
export function apiRepairEdit(params: any) {
    return request.post({ url: '/repair/edit', params })
}

// 删除报修单
export function apiRepairDelete(params: any) {
    return request.post({ url: '/repair/delete', params })
}

// 报修单详情
export function apiRepairDetail(params: any) {
    return request.get({ url: '/repair/detail', params })
}

export function apiRepairFinish(params: any) {
    return request.post({ url: '/repair/finish', params })
}


export function apiRepairRefund(params: any) {
    return request.post({ url: '/repair/refund', params })
}